package com.xyrl.project.common.system.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xyrl.project.common.domian.SelectOptionVo;
import com.xyrl.project.common.system.entity.Dictionary;
import com.xyrl.project.common.system.vo.DictionaryVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author zhongp
 */
public interface DictionaryMapper extends BaseMapper<Dictionary> {
    /**
     * 修改数据字典
     *
     * @param vo
     * @return
     */
    long modieyDictionary(@Param("vo") DictionaryVo vo);

    /**
     * 根据父级字典key 取得字典数据
     *
     * @param keys
     * @return
     */
    List<SelectOptionVo> findDictByKey(@Param("keys") List<String> keys);


}
